package 设计模式.g_桥接模式;

/**
 * @author caihe
 * @date 2023/3/10 10:25
 */
public class XiaomiRemoteControl extends RemoteControl {

    public XiaomiRemoteControl(TV tv) {
        super(tv);
    }

    @Override
    public void on() {
        System.out.println("小米遥控器按下开机");
        tv.on();
    }

    @Override
    public void off() {
        System.out.println("小米遥控器按下关机");
        tv.off();
    }
}
